package July;

import javax.swing.*;
import java.awt.*;

public class ShowJDialog extends JFrame {
    public void showJDialog(JFrame jFrame,String a,int width,int height,boolean n,Component c){
        JDialog jDialog=new JDialog();
        jDialog.setTitle(a);
        jDialog.setSize(width,height);
        jDialog.setVisible(n);
        jDialog.setLocationRelativeTo(c);


    }
}
